package com.freesky.web.manager.remote.search.fallback;

import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.common.utils.reponse.JSONResponseDiretor;
import com.freesky.web.manager.remote.search.SearchItemRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author: 陈玉林
 * @modifiedBy:
 * @date: Create In 17:12 2018/11/29
 * @description:
 */
@Component
public class SearchItemRemoteFallback implements SearchItemRemote {
    private Logger logger = LoggerFactory.getLogger(SearchItemRemoteFallback.class);

    @Override
    public JSONResponse importIndex() {
        logger.error("solr服务维护中");
        return JSONResponseDiretor.buildSuccessJSONResponse(null);
    }

    @Override
    public JSONResponse getInfo() {
        logger.error("solr服务维护中");
        return null;
    }
}
